<pre class='metadata'>
Title: MP3 WebCodecs Registration
Repository: w3c/webcodecs
Status: NOTE-ED
Shortname: webcodecs-mp3-codec-registration
Level: none
Group: mediawg
ED: https://w3c.github.io/webcodecs/mp3_codec_registration.html
TR: https://www.w3.org/TR/webcodecs-mp3-codec-registration/
Editor: Paul Adenot, w3cid 62410, Mozilla https://www.mozilla.org/
Editor: Eugene Zemtsov, w3cid 139375, Google LLC https://www.google.com/
Former Editor: Bernard Aboba, w3cid 65611, Microsoft Corporation https://www.microsoft.com/
Former Editor: Chris Cunningham, w3cid 114832, Google Inc. https://www.google.com/

Abstract: This registration is entered into the [[webcodecs-codec-registry]].
    It describes, for MP3, the (1) fully qualified [[WEBCODECS#config-codec-string|codec strings]], (2)
    the {{AudioDecoderConfig/description|AudioDecoderConfig.description}} bytes,
    (3) the codec-specific {{EncodedAudioChunk}}
    {{EncodedAudioChunk/[[internal data]]}} bytes, and (4)
    the values of {{EncodedAudioChunk}} {{EncodedAudioChunk/[[type]]}}.

    The registration is not intended to include any information on whether a
    codec format is encumbered by intellectual property claims. Implementers and
    authors are advised to seek appropriate legal counsel in this matter if they
    intend to implement or use a specific codec format. Implementers of
    WebCodecs are not required to support the MP3 codec.

    This registration is non-normative.

Markup Shorthands:css no, markdown yes, dfn yes
!Participate: <a href="https://github.com/w3c/webcodecs">Git Repository.</a>
!Participate: <a href="https://github.com/w3c/webcodecs/issues/new">File an issue.</a>
!Version History: <a href="https://github.com/w3c/webcodecs/commits">https://github.com/w3c/webcodecs/commits</a>
</pre>


<pre class='biblio'>
{
  "MP3": {
    "href": "https://www.iso.org/standard/26797.html",
    "title": "ISO/IEC 13818-3:1998 - Information technology — Generic coding of moving pictures and associated audio information — Part 3: Audio",
    "publisher": "ISO",
    "date": "1998-04"
  }
}
</pre>

Fully qualified codec strings {#fully-qualified-codec-strings}
==============================================================

This codec has multiple equivalent [[WEBCODECS#config-codec-string|codec strings]]:

- `"mp3"`
- `"mp4a.69"`
- `"mp4a.6B"`


EncodedAudioChunk data {#encodedaudiochunk-data}
================================================

{{EncodedAudioChunk}} {{EncodedAudioChunk/[[internal data]]}} is expected to be
a "frame", as described in the section 2.4.2.2 of the [[MP3]] specification.

AudioDecoderConfig description {#audiodecoderconfig-description}
================================================================

{{AudioDecoderConfig/description}} is not used for this codec.

The {{AudioDecoderConfig/sampleRate}} and {{AudioDecoderConfig/numberOfChannels}}
members are ignored.


EncodedAudioChunk type {#encodedaudiochunk-type}
================================================

The {{EncodedAudioChunk/[[type]]}} for an {{EncodedAudioChunk}} containing
mp3 is always "{{EncodedAudioChunkType/key}}".

NOTE: Once the initialization has succeeded, any mp3 packet can be decoded at
    any time without error, but this might not result in the expected audio
    output.

Privacy Considerations {#privacy-considerations}
==========================================================================

Please refer to the section [[WEBCODECS#privacy-considerations|Privacy
Considerations]] in [[WEBCODECS]].

Security Considerations {#security-considerations}
==========================================================================

Please refer to the section [[WEBCODECS#security-considerations|Security
Considerations]] in [[WEBCODECS]].
